package ioc11;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Author:shixiaojun@itany.com
 * Date:2022/3/7 10:46
 * Version:1.0-SNAPSHOT
 */
public class Test02 {

    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("ioc11/spring2.xml");
        SomeBean someBean = (SomeBean) ac.getBean("someBean");
        SomeBean someBean2 = (SomeBean) ac.getBean("someBean2");
        SomeBean someBean3 = (SomeBean) ac.getBean("someBean3");
        System.out.println(someBean);
        System.out.println(someBean2);
        System.out.println(someBean3);
    }

}
